public class Demo4 {
    public static void main(String[] args) {
        System.out.println(max(2,3));
        System.out.println(max(2.3,3.4,4.5));
    }
    public static int max(int a,int b) {
        return a>b?a:b;
    }
    public static double max(double a,double b) {
        return a>b?a:b;
    }
    public static double max(double a,double b,double c) {
        double maxNUM =max(a,b);
        double ret = max(maxNUM,c);
        return ret;
    }
}
